package com.webserve.test;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class URLDemo {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String line = "regUser?username=%E6%9B%B9%E7%A5%A5%E5%A8%9F&password=123456&nickname=%E5%A8%9F&age=22 HTTP/1.1";
        line = URLDecoder.decode(line,"UTF-8");
        System.out.println(line);
    }
}
